package cn.edu.scau.cmi.wujiaming.experiment3.client;

import java.io.IOException;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

public class AbstractFactoryClient extends Application {

	public static void main(String[] args) {
		launch(args);
	}

	@Override
	public void start(Stage stage) {
		new AbstractFactoryClient().openNewView_AF();
	}

	/**
	 * 用于综合性实验打开界面
	 */
	public void openNewView_AF() {
		Stage stage = new Stage();
		Parent root;
		try {
			root = FXMLLoader.load(AbstractFactoryClient.class
					.getResource("/cn/edu/scau/cmi/wujiaming/experiment3/fxml/AFMScene.fxml"));
			stage.setScene(new Scene(root));
			stage.setTitle("实验三-抽象工厂模式");
			stage.show();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
